/*jslint vars: true, forin: true, sloppy: true */
/*global angular, probe */

probe.service('objectStore', function () {
	var cssPathList;

	return {
		setObject: function (obj) {
			cssPathList = obj;
		},
		getObject: function () {
			if (angular.isArray(cssPathList)) {
				var objectList = Object.create(null);

				cssPathList.forEach(function (item) {
					objectList[item.name] = item.cssPath;
				});

				return objectList;
			}

			//return undefined;
		}
	};
});